/* src/frontend/static/css/style.css */

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 卡片增强 */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
  font-weight: bold;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

/* 结果项样式 */
.result-item {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 0.95em;
}

.added-line {
  color: #c82333;
  font-family: 'Courier New', monospace;
  background: #ffebee;
  padding: 2px 4px;
  border-radius: 3px;
  margin: 2px 0;
}

/* 图表区域 */
.chart-container {
  margin: 30px 0;
  text-align: center;
}

.chart-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-container h5 {
  margin-bottom: 15px;
  color: #333;
}

/* 表单增强 */
.form-control, .form-select {
  border-radius: 6px;
}

.btn {
  border-radius: 6px;
}

/* 区块链展示 */
.chain-container {
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.6;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .card-body .row > div {
    margin-bottom: 10px;
  }
  .chart-container img {
    width: 100%;
  }
}